< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03020415.xhp

(section: fileexists) (bookmark: bm_id3148946)
FileExists function

FileExists 関数

FileExists Function [Runtime]
FileExists 関数 [実行時](hd_id3148946.1)

Determines if a file or a directory is available on the data medium.
指定したファイルやディレクトリが、データ記録媒体上で使用可能であるかを確認します。(par_id3153361.2)

(/section: fileexists)

Syntax:
構文:(hd_id3150447.3)

FileExists(FileName As String | DirectoryName As String)
FileExists(FileName As String | DirectoryName As String)(par_id3154685.4)

Return value:
戻り値:(hd_id3154126.5)

Bool
ブール型(par_id3150769.6)

Parameters:
パラメータ:(hd_id3153770.7)

FileName | DirectoryName: Any string expression that contains an unambiguous file specification. You can also use URL notation.
FileName | DirectoryName:ファイルの位置を明示的に指定した文字列表式。またURL 指定を用いることもできます。(par_id3147349.8)

(embed text/sbasic/shared/00000003.xhp#errorcode : linkinfo)

Error Codes

エラーコード(hd_id3152869.37)

(/embed text/sbasic/shared/00000003.xhp#errorcode)

(embed text/sbasic/shared/00000003.xhp#err5 : linkinfo)

5 Invalid procedure call
5 無効なプロシージャー呼び出しです (par_id3150891.41)

(/embed text/sbasic/shared/00000003.xhp#err5)

Example:
例:(hd_id3149664.9)

sub ExampleFileExists
sub ExampleFileExists(par_id3145272.10)

msgbox FileExists("C:\autoexec.bat")
msgbox FileExists("C:\autoexec.bat")(par_id3147317.12)

msgbox FileExists("file:///d|/bookmark.htm")
msgbox FileExists("file:///d|/bookmark.htm")(par_id3153190.13)

msgbox FileExists("file:///d|/private")
msgbox FileExists("file:///d|/private")(par_id3148645.14)

end sub
end sub(par_id3149262.15)


< Prev / Next >